package cn.zhou.student.bean;

import java.io.Serializable;
import java.util.List;

//分页对象
public class PageBean<E> implements Serializable {
    private Long currentPage;//当前页数
    private Long num=9L;//每页条数
    private Long all;//总记录数
    private Long allPage;//总页数
    private List<E> results;//查询结果集

    @Override
    public String toString() {
        return "StudentPage{" +
                "currentPage=" + currentPage +
                ", num=" + num +
                ", all=" + all +
                ", allPage=" + allPage +
                ", results=" + results +
                '}';
    }

    public Long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Long currentPage) {
        this.currentPage = currentPage;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getAll() {
        return all;
    }

    public void setAll(Long all) {
        this.all = all;
    }

    public Long getAllPage() {
        return allPage;
    }

    public void setAllPage(Long allPage) {
        this.allPage = allPage;
    }

    public List<E> getResults() {
        return results;
    }

    public void setResults(List<E> results) {
        this.results = results;
    }
}
